-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 13, 2024 at 04:51 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `final_project`
--

-- --------------------------------------------------------

--
-- Table structure for table `login_user`
--

CREATE TABLE `login_user` (
  `user_id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `phone` varchar(10) NOT NULL,
  `accesstoken` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;

--
-- Dumping data for table `login_user`
--

INSERT INTO `login_user` (`user_id`, `username`, `password`, `phone`, `accesstoken`) VALUES
(1, 'admin', 'admin', '0986664536', 1),
(3, 'user1', '1234', '0998473626', 2),
(5, 'ausi', '2468', '0543245678', 2),
(6, 'kao', '1357', '0812364278', 2),
(10, 'test', '1234', '0856856756', 2),
(11, 'test', '1234', '0987654321', 1);

-- --------------------------------------------------------

--
-- Table structure for table `plugins`
--

CREATE TABLE `plugins` (
  `plugin_id` int(11) NOT NULL,
  `plugin_name` varchar(255) NOT NULL,
  `plugin_detail` varchar(255) NOT NULL,
  `price` varchar(255) NOT NULL,
  `image_url` text NOT NULL,
  `folder_dowload` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;

--
-- Dumping data for table `plugins`
--

INSERT INTO `plugins` (`plugin_id`, `plugin_name`, `plugin_detail`, `price`, `image_url`, `folder_dowload`) VALUES
(1, 'Guitar Effect', 'เอฟเฟคเสียงแตกที่ให้ซาวด์ธรรมชาติ ควบคุมง่ายด้วยสี่ลูกบิดที่ตรงตัว สามารถปรับทั้งโวลุ่ม ระดับเสียงแตก ผสม และเปิด-ปิดได้ตามความต้องการ', '0', 'logo guitar-plug.png', 'Stream-JUCE-Intro.vst3.rar'),
(2, '3D Effect plugins', 'เป็นระบบเสียงเซอร์ราวนด์ที่ให้สนามเสียงวนรอบตัวเราในแนวระนาบเดียว มิติด้านกว้าง (ซ้าย–ขวา)', '0', 'Boom3.png', 'X-Y-PAD.vst3.rar'),
(3, 'gyhumk', 'fkyu', '0', 'amp.jpg', 'REST_API (2).rar'),
(4, 'yuk', 'guil0', '0', 'elc-guitar.jpg', 'REST_API (2).rar'),
(5, 'as', 'dfasdf', '0', 'guitar-icon.jpg', 'Stream-JUCE-Intro.vst3.rar');

-- --------------------------------------------------------

--
-- Table structure for table `quality_dowload`
--

CREATE TABLE `quality_dowload` (
  `qulity_dowload_id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `quality_dowload`
--

INSERT INTO `quality_dowload` (`qulity_dowload_id`, `username`) VALUES
(1, 'admin'),
(4, 'user1'),
(5, 'ausi'),
(6, 'admin'),
(7, 'admin'),
(8, 'admin'),
(9, 'admin'),
(10, 'admin'),
(11, 'admin'),
(12, 'admin'),
(13, 'admin'),
(14, 'admin'),
(15, 'admin');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `login_user`
--
ALTER TABLE `login_user`
  ADD PRIMARY KEY (`user_id`);

--
-- Indexes for table `plugins`
--
ALTER TABLE `plugins`
  ADD PRIMARY KEY (`plugin_id`);

--
-- Indexes for table `quality_dowload`
--
ALTER TABLE `quality_dowload`
  ADD PRIMARY KEY (`qulity_dowload_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `login_user`
--
ALTER TABLE `login_user`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `plugins`
--
ALTER TABLE `plugins`
  MODIFY `plugin_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `quality_dowload`
--
ALTER TABLE `quality_dowload`
  MODIFY `qulity_dowload_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
